package cn.gf.dimanagementchartdatatransfor.util;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LotNoConvertUtil {
	public static String convertString(String input) {


		StringBuilder output = new StringBuilder(input);

		// Replace 'D' with '-'
		output.insert(6, '-');
		// Insert '.' at the specified position
		output.insert(output.length()-1, '.');
		// Truncate leading digits from the year and month part
		output.delete(0, 2);
		return output.toString();
	}

}
